<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
  <head>
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
	<link rel="stylesheet" href="css/custom/reset.css">
    <link rel="stylesheet" href="css/ui-base.css">
    <link rel="stylesheet" href="css/ui-box.css">
    <link rel="stylesheet" href="css/ui-color.css">
	<link rel="stylesheet" href="css/ui-res.css">
	<link rel="stylesheet" href="css/ui-media.css">
	<link rel="stylesheet" href="css/custom/base_640.css">
	<script src="js/jquery-1.8.0.min.js"></script>
    <script src="js/zy_control.js">
    </script>
    <script src="js/zy_click.js">
    </script>
	<script src="js/guoguojie.js" type="text/javascript"></script>
    </script>
	<script src="js/default_unit.js" type="text/javascript"></script>
    <script>
    </script>
  </head>
<body class="um-vp" ontouchstart>
	 <div class="content">
    	<div class="pd_s1">
    		<div class="com_lr">
    			<div class="l_box">
    				<a href="#"><img src="" class="avator" id="avatar"/></a>
				</div>
				<div class="r_box">
					<span class="name" id="nickname"></span>
				</div>
    		</div>
    	</div>
		
		<div class="main_box">
			<span class="triangle"></span>
			<div class="info_box">
				<div class="info_item"><a href="#">关注<i id="followCount"></i></a></div>
				<div class="info_item"><a href="#">粉丝<i id="fansCount"></i></a></div>
				<div class="info_item"><a href="#">消息<i id="msgCount"></i></a></div>
				<div class="info_item"><a href="#">现金<i id="cash"></i></a></div>
				<div class="info_item no_bb"><a href="#">收藏<i id="loveCount"></i></a></div>
				<div class="info_item no_bb"><a href="#">分享<i id="shareCount"></i></a></div>
			</div>
			
			<div class="ope_box">
				<div class="ope_item"><a href="javascript:;" onclick="settting();">设置<img src="images/icon_5.png" class="arrow" /></a></div>
				<!--<div class="ope_item"><a href="#">五星好评推荐<img src="images/icon_5.png" class="arrow" /></a></div>-->
				<div class="ope_item no_bb"><a href="javascript:;" onclick="logout();">退出<img src="images/icon_5.png" class="arrow" /></a></div>
			</div>
			
		</div>

    </div>
</body>
<script>
	
	zy_init();
	window.uexOnload=function(type)
	{
		if(!type){
			uexWindow.setBounce("1");
			uexWindow.showBounceView("0","#FFF","0");
			uexWindow.showBounceView("1","#FFF","0");
			uexWindow.notifyBounceEvent("1","1");
	       	if(window.localStorage){
				uexWindow.toast(1, 5, "正在加载请稍后", 0);
				var login_name = localStorage.getItem("loginName");
				var login_pwd = localStorage.getItem("loginPwd");
				var ajaxId = Math.floor(Math.random() * 100);
				var url = domainName+"mobile/getMember.htm";
				uexXmlHttpMgr.open(ajaxId, 'POST', url, 20000);
				uexXmlHttpMgr.setPostData(ajaxId, "0", "loginName", login_name);
		　　　	uexXmlHttpMgr.setPostData(ajaxId, "0", "loginPwd", login_pwd);
				uexXmlHttpMgr.onData = function(opcode, status, data){
					uexWindow.closeToast();
					if (status == -1){
						alert('网络连接出错，请检查网络!');
					}else if (status == 1){
						var ret = $.parseJSON(data);
						if(ret.success == 'true'){
							$("#nickname").text(ret.nickname);
							$("#avatar").attr('src',ret.avatar);
							if(ret.followCount > 0)
							$("#followCount").text('('+ret.followCount+')');
							if(ret.fansCount > 0)
							$("#fansCount").text('('+ret.fansCount+')');
							if(ret.loveCount > 0)
							$("#loveCount").text('('+ret.loveCount+')');
						}else{
							uexWindow.alert('错误','用户名或密码错误','确定');
						}
								
						uexXmlHttpMgr.close(ajaxId);
					}
				}
				uexXmlHttpMgr.send(ajaxId);
			}
		  	
		}
		
		
		
	}
	
	function settting(){
		uexWindow.open("edit_info",'0','edit_info.html','1','','','0');
	}

</script>
</html>
